<?php

function createNote($datos){
	$sl=construct_insert_fields($datos);
	
	$query="INSERT INTO notes $sl";
	
	$r=mysql_query($query);
	return $r;
}


function getNote_by_screen_id($id){
	$sl="SELECT N.*, U.name  FROM `notes` N , `admin_users` U WHERE (N.user_id=U.id) AND N.screen_id=$id ORDER BY N.id ASC";
	$r=mysql_query($sl);
	return $r;
}

?>